feat: add /screenshot command for PR visual review - #122
Merged
Conversation
Adds a slash command that captures affected routes with agent-browser and uploads them as draft GitHub release assets for embedding in PR descriptions, mirroring the flow already in use on bdocs. Wires it into the Pull requests section of AGENTS.md so visual diffs get screenshots by default. Co-Authored-By: Claude <noreply@anthropic.com>
Collaborator
✅ Heimdall Review Status
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Draft-release assets 404 for anonymous fetches, and GitHub's Camo image proxy fetches anonymously — on this public repo embedded draft assets render broken. Switch /screenshot to published prereleases (not marked latest) and clean up the tag on delete. Add .github/PULL_REQUEST_TEMPLATE.md with the Screenshots section the command feeds, and gitignore the local screenshots/ staging dir. Co-Authored-By: Claude <noreply@anthropic.com>
danyalprout
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.claude/commands/screenshot.md: a/screenshotslash command that captures the routes affected by a PR's diff withagent-browserand uploads them as GitHub prerelease assets for embedding in the PR body — the flow already used on bdocs, adapted to this repo's route tree (including thedev:internalrequirement for theinternal-explorer/benchmarksurfaces) and to this repo being public: draft-release assets 404 for GitHub's anonymous Camo image proxy, so uploads are published prereleases (not marked latest), deleted with their tag after merge..github/PULL_REQUEST_TEMPLATE.mdwith a Screenshots section the command feeds.AGENTS.md's "Pull requests" section so visual diffs (app/**,globals.css,tailwind.config.ts) get screenshots by default.screenshots/staging directory.Screenshots
Example output of running
/screenshoton this repo (homepage at 1280×800, uploaded viascreenshots-pr-122prerelease):Test plan
agent-browser open/wait/set/screenshot/closesequence used in the command against the local dev server — the embedded image above is its output./screenshoton a real visual-change PR to confirm the route-mapping table holds up.